package com.esun.payment_api.controller;


import com.esun.payment_api.domain.PDkCusRss;
import com.esun.payment_api.service.PDkCusRssService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("p_dk")
@ResponseBody
public class PDkCusRssController {

    @Resource
    private PDkCusRssService pDkCusRssService;

    //往来单位订阅
    @GetMapping("/call_cus")
    void getPCusRss(Integer cusId, Integer deptId, Integer coId, Integer userId){
        pDkCusRssService.callPDkCusRss(cusId,deptId,coId,userId);
    }

    //取消往来单位订阅
    @GetMapping("/cancel_cus")
    void cancelPCusRss(Integer cusId, Integer deptId, Integer coId, Integer userId){
        pDkCusRssService.cancelPDkCusRss(cusId,deptId,coId,userId);
    }

}
